package com.itheima.properties;

import java.util.Properties;
import java.util.Set;

/*
Properties 存储 字符串
操作属性
 */
public class Demo02
{


    public static void main(String[] args) {
        Properties prop = new Properties();


        //存储并遍历 字符串
        prop.setProperty("maxnumber","10000");
        prop.setProperty("minnumber","0");
        prop.setProperty("normalnumber","5000");

        String maxnumber = prop.getProperty("maxnumber");
        String minnumber = prop.getProperty("minnumber");
        String normalnumber = prop.getProperty("normalnumber");
        System.out.println(maxnumber);
        System.out.println(minnumber);
        System.out.println(normalnumber);
        Set<String> propertieNames = prop.stringPropertyNames();
        for (String propertieName : propertieNames) {
            String propertyValue = prop.getProperty(propertieName);
            System.out.println(propertieName+"&&&&"+propertyValue);
        }

    }
}
